{config_load file="$language/lang_$language.conf" section="product_info"}
{config_load file="$language/lang_$language.conf" section="checkout_confirmation"}
{config_load file="$language/lang_$language.conf" section="checkout_paypal"}

<h3>{#heading_checkout#}</h3>
{if $error!=''}<p>{$error}</p>{/if}

{if $IP_LOG=='true'}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td class="main">&nbsp;</td>
	</tr>
	<tr>
		<td><strong>{#text_ip#}</strong></td>
		<td class="inputRequirement"><strong>{$CUSTOMERS_IP}</strong></td>
	</tr>
</table>
{/if}

<p><strong>{#title_payment_address#}:</strong><br/>{$ADDRESS_PAYMENT_LABEL}</p>
<p>{$BUTTON_PAYMENT_ADDRESS}</p>
<p><strong>{#title_shipping_address#}:</strong><br/>{$ADDRESS_SHIPPING_LABEL}</p>
<p>{$BUTTON_SHIPPING_ADDRESS}</p>


<h3>{#title_shipping#}</h3>
<br>
{$FORM_SHIPPING_ACTION}
<p>{#text_shipping#}</p>
<p>{$SHIPPING_BLOCK}</p>
{$PAYMENT_HIDDEN}
{$FORM_END}

<h3>{#text_products#}</h3>

<table class="orderdetails" width="100%" border="0" cellspacing="0" cellpadding="6">
	<tr class="headerrow">
		<td class="left"><b>{#text_products#}</b></td>
		<td class="left"><b>{#text_model#}</b></td>
		<td class="right"><b>{#text_qty#}</b></td>
		<td class="right"><b>{#text_sprice#}</b></td>
		<td class="center"><b>{#text_fprice#}</b></td>
	</tr>
	{foreach name=aussen item=data from=$products_data}
		<tr class="{cycle values="contentrow1,contentrow2"}">
 			<td class="productname">
 				<b>{$data.name}</b>
 				{foreach key=a_data item=attrib_data from=$data.attributes}
 					{$attrib_data.option} : {$attrib_data.value}
 				{/foreach}
 			</td>
 			<td class="productname">{$data.model}</td>
 			<td class="quantity">{$data.qty}</td>
 			<td class="singleprice">{$data.price_formated}</td>
 			<td class="totalprice">{$data.final_price_formated}</td>
 		</tr>
	{/foreach}
	<tr>
		<td colspan="5" class="subtotal">
		<div align="right">
			<table border="0" cellspacing="0" cellpadding="1">
				{foreach name=total_data item=total from=$total_block}
					<tr>
						<td>{$total.title}</td>
						<td align="right">{$total.text}</td>
					</tr>
				{/foreach}
			</table>
		</div>
	</tr>
</table>

{if $PAYMENT_INFORMATION!=''}
	<h3>{#text_payment_info#}</h3>
	{foreach name=aussen item=payment from=$payment_info}
		<p><b>{$payment.TITLE}</b> {$payment.FIELD}</p><br />
	{/foreach}
{/if}

<h3>{#title_comments#}</h3>
{$CHECKOUT_FORM}
<p class="checkoutcomment">{$COMMENTS}</p>

<h3>{#title_agb#}</h3>
<p class="checkoutagb">{$AGB}</p>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
	<tr>
		<td>{$AGB_checkbox}</td>
		<td width="100%"><strong>{#text_accept_agb#}</strong></td>
	</tr>
</table>
<br />

<table width="100%" border="0" cellspacing="0" cellpadding="4">
	<tr>
		<td>{$ADR_checkbox}</td>
		<td width="100%"><strong>{#text_accept_adr#}</strong></td>
	</tr>
</table>
<br />
<p> {if $MODULE_BUTTONS!=''} {$MODULE_BUTTONS}<br />{/if} {$CHECKOUT_BUTTON}</p>
{$FORM_END}
{if $REVOCATION}
	<p>
	<b>{$REVOCATION_TITLE}</b><br />
	{$REVOCATION}<br />
	<table width="100%" border="0" cellspacing="0" cellpadding="3">
		<tr>
			<td class="main"><img src="{$tpl_path}img/arrow_green.gif" alt="arrow" />{$REVOCATION_TITLE}&nbsp;{$REVOCATION_LINK}</td>
		</tr>
	</table>
	</p>
{/if}